package com.bbzn.device.client.dao.fence;

import com.bbzn.device.client.dataobject.Fence;
import java.util.Date;
import java.util.List;
import com.bbzn.device.client.dto.fence.FenceDTO;import org.apache.ibatis.annotations.Param;

public interface FenceMapper {
    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(Fence record);

    int insertOrUpdate(Fence record);

    int insertOrUpdateSelective(Fence record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(Fence record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    Fence selectByPrimaryKey(Long id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(Fence record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(Fence record);

    List<Fence> findByAll(Fence fence);

    int updateBatch(List<Fence> list);

    int batchInsert(@Param("list") List<Fence> list);

    int deleteSelective(Fence record);

    int findCountByAll(FenceDTO fence);

    List<Fence> findPageByAll(FenceDTO fence);
}